core: Add an API to parse a content file using dirfd relative lookup
authorColin Walters <walters@verbum.org>
Thu, 15 Jan 2015 03:03:02 +0000 (22:03 -0500)
committerColin Walters <walters@verbum.org>
Thu, 15 Jan 2015 03:03:02 +0000 (22:03 -0500)
commita7300a828db26749e79d2e290eb561698d84655a
tree74e57abb07c3956a5844a87389d5db02d7285972
parent9b6b352181e681fb5f5808d749ea1efb91f0e9cc
core: Add an API to parse a content file using dirfd relative lookup

This will be used for a later change to use openat() for the fetching
code.  Note that we drop the code to use mmap() - it was an attempt to
avoid keeping a fd open, but we do correctly close anyways.
src/libostree/ostree-core.c
src/libostree/ostree-core.h